From b4c2b3ae59b59cf122bd93b5abba6923dbd7350b Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Tue, 3 Oct 2006 11:24:48 +0100 Subject: [PATCH] [XM] Fix rmlabel filename assignment The patch fixes a bug in the rmlabel tool. Signed-off-by: Stefan Berger --- tools/python/xen/xm/rmlabel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xm/rmlabel.py b/tools/python/xen/xm/rmlabel.py index 6a29a8c20e..0869c6c874 100644 --- a/tools/python/xen/xm/rmlabel.py +++ b/tools/python/xen/xm/rmlabel.py @@ -60,7 +60,8 @@ def rm_domain_label(configfile): fd = None file = None if configfile[0] == '/': - fd = open(configfile, "rb") + file = configfile + fd = open(file, "rb") else: for prefix in [".", "/etc/xen"]: file = prefix + "/" + configfile -- 2.30.2